Replace dots with underscores while looking at env vars.