make directories when dumping/exporting