preparing for mksh, update #3142
replace all '=~' with '== *' for compatibility with mksh, update #3142
copy __rvm_has_opt from scripts/rvm to scripts/base, update #3142