Filter prereleases before checking for gems

If only prereleases were present for a dependency a NoMethodError would
be raised instead of a useful exception.
Fix filtering of platform gems in always_install

Previously platform was ignored when choosing a gem to always install.
This meant a platform that could not be installed was chosen and nothing
would happen.