Remove duplicated CMakeLists.txt from EXTRA_DIST
Add unit test for sanitizeLatexOption()

This is a prerequisite for safe removal of regex::match_partial.