Fix #7: _reader (stdout PassThrough) knows when to send the 'end' event