Fix to make pfsense fetch packages behind a proxy and removal of a redundant require_once

This should be the correct way to correct the problem I was observing on my pfsense box. This time it was tested on a non proxied pfsense as well as a proxied pfsense