For running in Windows

To run on Windows path seperator must be changed.
Also close_fds is not available on Windows.