Fixed a bug blocking the version printing

The code was using the logger before it was initialized