CHEF-2286: Fixed bug of enviornment variable treatment

* Fixed bug crashing when LC_ALL is nil
* Added to check LANG variable.
    * Priority order is resource.locale, LANG, and LC_ALL