set-external-build-result: fix some minor issues