Fix common path "calculation" from logs of multiple branches.