add a fallback for old versions of ruby/rubygems that uses Gem.available? to check for installed gems