add check for which in installer, add rvm_error mock, fix #2121
Merge branch 'master' of github.com:wayneeseguin/rvm