Fix getoutput. Pass the task option to load the cache.
Merge pull request #3987 from mmascher/fixout

Fix getoutput. Pass the task option to load the cache.