Handle pipes to process.stdout

Avoids calling end(), which throws.
Tests for pipes to stdout and stderr
Merge pull request #22 from evansolomon/dont-end-stdout

Don't call end() on process.std(err|out) streams