Fixing redhat

3 Fixs, tested on Centos6.4. The only real important one is the LANG/LC_ALL fix which breaks the script on RH. This fix issue #1.