Fixes an issue that blocked the version displaying

The code had been using the logger before it was initialized.