Fixed log directory not being created