get_paths & co: fail early if jq and curl are missing
get_paths and a bunch of other scripts fail if some
programs (presently jq and curl) are missing.
Add a new function which checks if the they are working
and use it to fail early if not.
BUG: 423205