Export PATH outside of cache-creation step.

Fixes shellcheck not being found and repeated installs of shellcheck