Fixed path resolution for windows

In Windows the PATH variable is separated by ";" instead of ":". This Pull request is OS independent and more importantly makes this code to work in Windows.

Note that process.platform returns 'win32' even if its Windows 64 bit, so it's working with every bit version.