Refactor calls to pick `gmake`/`make` and `gtar`/`tar`
What does this MR do?
Refactor several places in which we first need to know if gtar
and gmake
exist.
Closes #33643
Refactor several places in which we first need to know if gtar
and gmake
exist.
Closes #33643