Add logic around the version output so we only put it there if we have it.