fixed to use environment variable for path

fixed deprecated path var