cmSystemTools: use the actual case for root detection
On Windows, calling a binary installed with the default bin
binary
directory will fail to be detected when called as BIN\cmake.exe
due to
the string compare. Get the actual case of the path before checking that
the path ends with CMAKE_BIN_DIR
.
Fixes #16574 (closed).