Fixed rvm reinstall/remove ruby not working properly. Addresses issue #1550.