use File.exist? instead of File.exists?
Update comments regarding JRuby comparisons.
Remove workaround for RubyGems issue 763 (fixed in v2.2.1).