improve cd, support more rvm config file types