added os handling to setup.sh