Fix path issue for log file creation