Better support Windows
Merge pull request #10 from yethee/fix-spawn

Better support Windows