Change CMakeLists's way to get git revision: use git command instead of looking into the repository.