Fix install.sh bugs