Fix #211. Try to create folders for logs.