don't use os.getlogin() as it fails for cron started jobs

http://stackoverflow.com/questions/4399617