Fix version.h creation for in-the-tree build