Fix relative path calculation for log file