openssl compilation fix - patch from ruby/ruby#GH-488
use only file name from rvm_ruby_package_file when saving binary ruby, fix #2507
do not split search when not needed in removing from array
do not read versions for system ruby