Allow getrevid to be run from outside the source tree. (dm)