Build: configure.in: Correctly determine BUILD_REVISION according to the basename of the top directory