Calculates the MD5 for a directory tree.