Require win-spawn, fix missing osType variable