Updated logic for repository selection

I put `If ubound(result) <> 0`, but if it's found even once, it's a "0"
(or more if there's more than one user with the same string). Rewrote it
to read `>= 0`.