Add cwd argument for rvm.do command

Fixes #11923
Fix rvm module test for adding cwd argument
Merge pull request #13000 from agoragames/add-cwd-argument-for-rvm-module

Add cwd argument for rvm.do command