Fixed resolution of path in `opam repo add`

Closes #763