When detecting the existence of a proxy environment variable, check for HTTP versus HTTPS and uppercase vs lowercase