build: add module to determine komodo revision/buildnum

(integrated from trunk branch change d021232 by Todd Whiteman <toddw@activestate.com>)