Hashes an entire directory tree