Don't turn on analytics on CI unless explicitly set

The recent change to prompt for analytics started breaking CI builds (#1102, #1162). Most CI servers set an environmental variable of "CI" so scripts can sniff if they are running on a CI system. This would still allow analytics collection if the configuration is explicitly set.