fixed it so it creates a DIR when you don't have a log dir