class SysInfo

def getpwattr(pwattr)

without relying on ENV['HOME'] being present.
As an example, `getpwdattr(:home)` will return the user's home directory
Returns a named attribute of the user's /etc/password entry, or nil.
def getpwattr(pwattr)
  passwd = Etc.getpwuid(Process::Sys.getuid) || {}
  passwd[pwattr]
end