Helper script invocation fix for MinGW build

Thanks to Tommy Ettinger for testing the build on Windows.