Gravity update path problems

Mathces the output of the weekly cron mail, check this topic for a temporary solution (Errors during weekly gravity.sh update (cron)). The cron job, performing a scheduled pi-hole update has the same problem, read the solution here. Mcat12 says It is because root while running the cronjob doesn't have pihole on its path, so it can't execute it.