fix gz support without curl