Don't attempt to recurse into the current package

This happens when files in a package appears to import themselves, most
commonly when a package foo has test files in package foo_test that
imports foo.