fix detecting jruby native directories