Fix cache version file creation
# What does this PR do?

As reported in #19738, the cache version file is never actually created on a new machine. This is because it was under a test a bit too restrictive (there needed to be cached files).
This PR should fix this.

Fixes #19738 
_The documentation is not available anymore as the PR was closed or merged._