Add util to get a hashed directory