Changing how default log file is worked out.