Check that file ends in '.gz', not just 'gz'