testsuite: Fix excluding tests that a substring of another test.
Fix excluding math when there is a test mathl. The shell test used fails in this case. This patch's approach is much simpler.
math
mathl