Add a condtional around the envvars.