Update apply-patches.sh