[fix] Improved gzip detection. Fixes #8