Tests now work on Windows

Fixed the test suite to run reliably across Windows, macOS, and Linux by using cross-platform path handling, creating Windows command wrappers for the fake test binary, and adding shell options that match how the code runs in production. Windows test pass rate improved from 12 to 59 out of 64 tests.