Make the CMake tests more resilient to symlinks
The "CMakeModules" tests used to compare filesystem paths using string comparison, and would therefore fail in the presence of symlinks in the build environment. This MR resolves that.
Edited by Hadrien Benjamin Grasland