Fixing UpgradeStatus and improving the install script.