try to use the function mode instead of binary mode of rvm