Revert "cmMakefile: Fix wonky string logic in sourcefile searching"

This reverts commit 1559cc692752ffc0b6e266ec0e52ceac0ed14d25.
!!! misc api