Don't pick a random pkgin version from any random package

When running pkgin to determine candidate package version on SmartOS,
`ruby-thing-1.2.3` could be matched when trying to find package `ruby`.
Now we exclude versions from different packages, even though candidate
version is always the last package version in the list *shakes fist*