Refactoring triggered by previous bug fixes
Bug fix: Exit with nonzero code when failing to build/install requirements