Fix log file creation.