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