Make project buildable also without Git

If Git is not found, revert to just dumping the label into the code.
(We currently have no way of getting the SHA into the tarball).

Fixes an "issue" I became aware of from the comments in opm/opm-core#290