Replaces the handwritten bytesBuf/eof workaround with the canonical
bytes.NewReader + io.EOF, and adds behavioural tests for the Dir, Env,
and Stdin branches of Real.Run that the original plan didn't cover.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>