Add support for the --directoryperdb option