Minor improvements to kicad-install.sh.

* Exit script when package install, build configuration, or build fails.
* Install each dependency package one at a time.