resolve enviroment variables in the path