auto-write the version.h file