Fallback to using pwd if os.getlogin() fails (fixes #2)
Merge pull request #1 from thp/master

Fallback to using pwd if os.getlogin() fails (fixes #2)