Improve detection of jruby platform