Compares textfiles by name or content in order to remove duplicates