fix curl error

The APKINDEX.tar.gz file contains a binary RSA public key that causes a "curl: (23) Failed writing body" error when running the script on Lubuntu 14.04.