Fixed 'opam update' with repo and package with the same name

Closes #1160