implement "pip self-check" with automatic invocation by default

initial work cribbed from PR #1214 but then I changed direction a little
We could still add an additional element to indicate this is a self-check rather than any other kind of pip operation...