I've given up trying to write `spec` tests that work on both unix and windows for this sort of thing. `SYSTEM` is such an integral part of windows, I just confine the unit tests to windows and call it done.