Fix caching of the exec template function
In #33283 (closed) we added caching in the exec template function. With this cache we avoid running the same command for the same git_hash twice, but we forgot to take the project into account.
I think this is what is causing wrong commit hashes to appear in the log in tor-browser-build#40139 (closed).