Make version checks compatible with jruby 1.7.2

All the specs that passed before should now pass with jruby 1.7.2.