update ast/setup.sh

+ only download if no dir
+ switch curl to wget for compatibility