Fix compile even if we don't have .git repo

Authored by mlaurent on Dec 3 2019, 12:57 PM.