Reduce duplicate paths to log file