fixing CMakeLists.txt to allow build if `.git` dir is missing