Checksum a directory tree.