No need for os.path.realpath when calculating logfile file name