Fixes bugs in proxy_detect #zsh