config: fixed crashes when $EC2_URL env var is not set