This section references unset environment variables.  I'm wondering if update_oonib_scripts is out of sync with the version on m-lab-tools/ooni-support?

The version on m-lab-tools/ooni-support master uses git submodules to reference versions of external repositories rather than fetching them here.  It keeps the prepare script simple and uses git's strengths for tracking versions.