Fix problem when loading rvm