Fix docker_registry login handling, fixes #114

See #114