I am searching for a string in .gz files and trying to print the last line with a specific string. It is giving me \'list Index is out of range\' if the string is not presen