check LC_ALL before LANG

order as in: http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html