fixing dump and flush script
Merge pull request #549 from nlake44/zk-dump-fix

fixing dump and flush script