Fix gzip detection