bootstrap: check the exit status of commands