Attempt to work around Node.js exiting before stdout/stderr are flushed in Windows.

Picked this fix from grunt 0.4.
New version