Fixed build log pid detection if multiple processes accesses the buildlog