Fix windows spawn

/to @piscisaureus 

OK to publish? Actually, you wrote the code. I reviewed it and pasted it in... So, I'll auto-LGTM this pretty soon.