Robust setup.sh