added rethash parameter to iter_file_dups