[PLAT-5023] Added level of indirection to dump writing. Dumps can now write to a directory hierarchy (as before) or a single zipfile