Update upgradelib.php