Raise exception when tryin to scan external package or sub-package