Fixes jruby handling for travis.