Updated command detection in setup.sh