Fix feature finding on jruby (much more rubust now)