Remove const char string comparison helper.

It is now unused.
Simplify use of binary_search.

A local string was created when dir was a const char*. Now dir is a
std::string already so the dirString is vestigal.
Merge topic 'minor-cleanups' into next

80bda168 Simplify use of binary_search.
1927e4ba Remove const char string comparison helper.