more intelligent detection of generic LANG setting