Make pkgdb_get_reponame take a repository name and return a repository
internal name, this makes pkg rquery work with -r