Fix writting all tasks to current file

When reading from multiple tasks files it was saving all tasks to
local tasks file. Now is reading from all tasks files only for listing and
cat.