This affects MSYS2 specifically since it would find the msys "cmd"
bash script when running shutil.which("cmd") instead of the system
cmd.exe.
The patches for this package are auto generated and managed in git: https://github.com/msys2-contrib/cpython-mingw
Run ./update-patches.sh to re-create the patches.