fix version.h generation for the Makefile case