Use the same algorithm as kpm for finding package matches

- Updated how packages are resolved by snapshot.
- Remove pseudo dependency resolution logic when getting
  dependencies

#195
typo in comment