Fix confusion of localName and remoteName introduced in #1168

pushing to a custom registry is broken without this