Fix upgrade script
Merge pull request #11 from pmorie/dev/upgrade_analysis

Dev/upgrade analysis