call the packageFilter() with the pkgdir

The resolve module calls packageFilter with a second parameter. This patch passes the second parameter through.