Repaired environment-aware CMake module discovery.

  * Ensured that CMake could load a list of paths from the environment.