More reliably fetch locale LANG env
Merge pull request #6264 from sitepoint/debian_locales_fix

[patch] More reliably fetch locale LANG env