Move version number logging into a single method