include globlen when inferring search repo from arg

I broke searching like 'pkgfile -l $repo/$pkg' when I refactored the
matching a little earlier.