Fix error while running log2queries on all log files