git: only add new language env var if it doesn't exist yet. fixes #1191