fixed bug in calculation of stdev
scripts for setting env variables