used the tidy and perltidy scripts to clean upgrade.pl so that travis doesn't complain about it