conform to child_process.spawn behavior more.