Avoid rewriting version.cfg with empty git data.