refs: document _next_name()

If it's not documented, it doesn't show up in the docs (and we really
should document, anyway).
ciscript: don't use an empty string as a number

An empty string is not a valid number, and some shells complain.

Check instead if $COVERITY is non-empty, which is a common convention
and what we're doing anyway.