Fixes to rvm and magit-git-editor