Update setup.sh

Applied sudo only to the lines that need it and fixed a bug of cloning simulation models.