(bug #3778) GetBranchesLoop and searchMyLibraryFirst