LP1800871: small correction to upgrade script