Fix incorrect check for unmatching files