Fix JRuby 2.0 and 2.1 mode on Travis