Use salty way to get environ
Merge pull request #18234 from cachedout/pkgin_fix

Use salty way to get environ