log.py: Make ensure_dirs fatal