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.
Merge pull request #1 from calmh/prevent-infinite-recursion

Don't attempt to recurse into the current package