Bug fixed.
Bug info: Host and port were always overwritten with environment variables MYPROXY_SERVER and MYPROXY_SERVER_PORT when they had been obtained through openid (--openid option) or through properties file .MyProxyLogon