PY-18970 Check that imports in "project" group don't belong to any library root