Expand user in file paths for log files, fix #53

Use os.path.expanduser() to expand '~' to full user home paths.