support for EC2_URL env var, fixes #3