Fix git version cmake scripts for travis