Remove duplicated filenames in list of headers