Refine the log substitution pattern for BuildID.
Add a diff subst pattern.