CMake: Updated use of environment path variables, configuring data files for tests.