Recursively hash a directory