Railcare saved as German buyers confirm deal