getlogin() often lies, especially when run under "su" -- it still returns the
calling user, so node['current_user'] is set incorrectly in this case.
According to the Ruby documentation, it's safer to use getpwuid().
Merge pull request #386 from juliandunn/getlogin-lies

getlogin() often lies, especially when run under "su"