This eliminates the possibility of the history button not opening the log file, which has been reported in the past. This also corrects cases where log files named with date would not be opened.