generate version file and cache uname