bash: correct path expansion for rvm helper