Only import pwd in one place, Fixes #4808

Also make it so windows minions can import master.py without barfing on
the original pwd import
Small copyedit and pep8 fix
Use salt.utils.is_windows()
Merge pull request #4961 from basepi/pwd4808

Only import pwd in one place, Fixes #4808