Fix up how we set our upstream proxy

If the install failed, and you reran production.sh, the installed proxy would wind up trying to use itself as its upstream proxy.  This patch fixes that behavior.