node-webkit wrapper to recover stdin and stderr