two bug fixes on rvm and cleanup