Upgrade setup.sh
Fix ver3 choking bug