pip: better detection logic, agreeded paths