Fix RVM is not a function issue on OSX