Fix some rvmsudo bugs