Ensure JRuby and Travis compatibility