update version check to match jruby-18mode