Add support for %b and %B.

This permits adding data after the build rule name when using NINJA_STATUS.