make sure that we create log directory before setting up logger