added LC_ALL and LANG to resolve locale probelm in Mac