Be a little more assertive with how we use JSON and Curl.  Also only check for environment variables when codespeed is true