Trying to extract the first line of the index file in the right way