Fixed a bug with stdio pipes

If you forwarded the stdio streams, then they would be undefined, causing exec to throw an exception since child.std... would be undefined. To fix this, I added a check to see if the streams exist before doing anything to them.
Merge pull request #9 from kkirby/master

Fixed a bug with stdio pipes