fixed the error popping up when a log_dir directory doesn't exist