autodetect LANG when missing from some of existing variables in 'locale -a', fix #1883