added option to turn off directory dump in dumpers
The rationale is to allow the specification of actual file paths when
constructing dumpers, so that scripts can integrate better with workflow
management systems like GNU Make or Snakemake which directly specify target
paths. This removes the need for boilerplate treatment of the path name.