Fixed bug with log file and directory

I think I broke the repo. Heres a fix :-!