Have Build and Rebuild exit with a status to the shell.