It seems a bit silly for nearly all of the scripts to first ping Google before doing anything. It seems to want to check if internet is available (by GETing Google) before doing anything else. It performs this check using nc, however it also depends on either wget, curl or fetch for the actual HTTP requests.
I'd just drop the ping to google entirely. If wget/curl/fetch fail, so be it. No need to introduce additional slowness for the small chance internet isn't working.