use graceful-fs and bail out whem merkle-dir errors