fix(MockSTDIN): if last chunk not emitted, send it immediately

Closes #8