Add rvm instructions to readme and fix rvm variable detection