cmake/patch.bat: detect already applied patches