testing: Return an error if any command in the certificate build script fails