fix two obvious bugs???
Merge pull request #1109 from dynport/remote-lookup-fix

Fix remote lookup when pushing into registry