added ability to use environ variables in path names