Can you change these to just $apt::proxy_host?  We've moved away from getparam() due to issues with people on older versions of stdlib.