Check that exit codes are zero

Rather than they are not one, this is more readable and should be more robust.