fix rvm ... do when rvm is not a function, fix #1447