Allow suffix match of non-unique substrings
Use exact match on path or last component
Merge pull request #1 from calmh/master

Check full- and last-path-segment match first in repository specifiers.