Update setup.sh

Replacing safe_command calls with ensure_command_success