Force using RubyGems 1.8.24

This will make tests pass on jruby.