Update upgrade_all.pl

Fixed what I broke so the script will exit correctly when it has nothing to do.