Compute the size of a directory