fixes for loading rvm from kdm