Make sure gzipped files work.
Fix reverse_readlines as well.