remove unneeded extra call to get_*_versions

Those calls are not lightweight, so doing it
twice was wasting .5 sec.

Also cleanup unneeded trailing space in log
message.