Recursively compute disk cache sizes

@irace, @mb
find the 'root' directory that this file belongs to, to use for the key