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 `info` as undefined while working on the previous PR).