Adding a connect_timeout option for downloading java.