Package cache and version detection.

Revert to all packages scanning. Let me known what you think.