Better JRuby detection