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

Closes #1160
Merge pull request #1266 from OCamlPro/upd-repo-pkg

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