Fixes #30496
Seems odd to sometimes do an out-of-tree build (via ./ci/lint_imagefile, see test/lint/README.md) and sometimes not (via Cirrus CI, see ./ci/lint_run_all.sh).
Fix it by doing an out-of-tree build consistently in the same location.
Also, fix $CI_RETRY_EXE, while touching this.