Use digested directory path in cache path

This is for Windows support so the paths don't get too long and we
don't end up with multiple C: segments in the cache path.