Use PATH instead of DIRECTORY in CMakeLists.txt to support older CMake versions