Don't crash when spawning npm process fails
Fix spawning child process on Windows (see https://github.com/joyent/node/issues/2318)