fix checking if binary rubies can be used for jruby, fix #2232