Fix problem with build log regex matching