Return stdout or stderr from `task_info`.

This is definitely something I broke during the process of converting things to use the shared `_execute` interface; sorry about that.

(I just happened to notice that my linter highlighted both `out` and `err` as undefined while working on the previous PR).