Use salty way to get environ

Conflicts:
	salt/modules/pkgin.py
Merge pull request #18857 from rallytime/cp-18234

Backport #18234 to 2014.1