from rvm: clean user detection, fix curl download of rvm