fix gem detection so it works with universal-java platform as well with all other platform suitable for jruby
use released version