Legacy IP support for download.sh
* packages/download.sh: Add options --ipv6 and --ipv4. Remove bashism.