fixed: --init fails to create log directory.