making sure that environmental variables (LANG and LC_ALL) are reset for both the scripts and spm