Fix a bug with how the upgrade task checked for rvm