prevent os.getlogin from failing when run from cron

http://stackoverflow.com/questions/4399617