Configure APT proxy cache based on environment variable

(APT was not happy if proxy configured by that host was offline or not reachable)