Fixed: tof_list did not check if the directory exists before saving the
output to a file.