main/Makefile.am: fix code to generate version.h code is now als able to handle git...