Perlaced child.stdin.end(bla-bla) with proper stdin options in child_process.spawn