lazy package detector from directory structure for native apps.