Fixed bug that caused logger not switching over to next day directory