saltstack/salt — pull request #11703 by terminalmage (2014-04-01 19:38:38+00:00)
Title: Use pwd (where available) to get username (2014.1 branch)

This is #11702, cherrypicked for 2014.1.