Fix update.php for clean installation