install/uninstall.sh: better error handling