Updated install.sh to be more clever

Not super clever though.