Check for existence of rvm function and install if not