fix failure to execute sort command in intersect_files