Fixed bug, detecting gzipped files.