`dbus-run-session` execs, so does not carry-over shell functions.
Previously, we had explicitly exported just the functions we needed.
However, what is needed has recently changed due to changes in
`cargoCheckHook`. Instead, export all functions so we are not so coupled
to the implementation. Do this in a subshell to avoid polluting the rest
of the build.