fixed to use environment variable for path

fixed deprecated path variable