Replace hard-coded "/dev/null" strings with null-device variable conditionally set to "\\\\.\\NUL" or "/dev/null" depending on the host OS.