added ability to use env variables in script path