improved handling for jruby.compat.version (should work with jruby-head)
let's see how jruby-head rolls (just to get a guess)