fix version.h generation for out-of-tree builds