Fix install.sh optimizations.