update download.sh for gen_server