Record task completion time as mtime of a file