Make rvm function work with newest rvm version (1.18.3).