Use getlogin() to obtain username, there are cases when LOGNAME is not set and it makes PBI binary crash
Merge pull request #40 from rbgarga/fix_logname_crash

Fix logname crash