On a CI re-run, the historic env vars and CI config is used from Cirrus. However, the most recent CI config and CI scripts from this repo are used. This may lead to issues.
For example, CCACHE_DIR
in the old location may be missing on new CI workers and lead to errors.
Fix it, by falling back to the old logic when the old CCACHE_DIR
was detected.