Fixed logger crash on startup when perfect environment variables not set up