Optional cd zip

Same thing here use reader object:
reader = Zlib::GzipReader.open(filename)
reader = File.open(filename)