fix(builder): check exit code instead