Generate version file