Massaging the build process

Preparing ground for further work on build scripts.
Is `install_failed` used in more than 1 place? If not, this is a premature optimization and would prefer to keep it inline.