check after a cache miss more sensibly, down in the package dir tree