adding --temp-dir option to dump/restore