Fix Travis build for jruby

 https://github.com/travis-ci/travis-ci/issues/1798