spawn ENOENT in win

check for win in outer scope