updating environment scripts to work with apache 2.4