Allow to parametrize curl connect timeout with env variable

Useful when one is not curl'ing from EC2.