Resolves cache tests failing if the directory length is longer than 64

...ers

Partially resolves https://github.com/owncloud/core/issues/10991 failure 2