Improve version.h generation