Improve detection of installations errors
Merge pull request #2538 from eMerzh/improve_pbm_detect

Improve detection of installations errors