Added ENV_DIR and Proxy support 

git will pick up https_proxy and http_proxy if set and use those for the clone