download.sh: support branches