Added support for Windows machines

Wasn't able to save new files on NT based machines. Corrected this by finding which path separator to use.