Modify proc_open for Windows

I had to make this change to get snappy working on a windows server (as otherwise the web server has to have privileges to run cmd.exe). Might be a good idea to merge it into master.