Add package name check

The first found .go is possibly from a "sub" package, so we must check
the package name (to be equal to "main").