extract __rvm_cli_posix_check, update #2388