Fix getting proxy from the environment