node.js script for reproducing an issue with child_process.spawn where output to stdout is lost