ENH: add mkdirs in config