Update applypatches.php