Detect git HEAD version change in cmake

Creating the config file to get the correct displaz version into
binaries and package version requires a cmake rerun.  This patch
implements a crude way to do that by depending on the HEAD file in the
git repository.