Fixing comparison for excluded files names in TOC