Fixed IOError errors when pushing
Merge branch 'master' of github.com:dotcloud/docker-registry