in reply to 'reflection', aka traversing symbol tables

You're going to kick yourself :-)

You said you're looking for values of $CVS_REVISION, but your code looks for values of $CVS_VERSION.