install.sh: add more warnings and checks