Add cwd argument for rvm.do command

Fixes #11923