osdeps: fix gem explicit version selection for pre-2.0 RubyGems

We have to fetch all available versions to be able to query
a version that is not the latest.