create config dir, before pointing log file there

thanks to @richih