Optimize getPackageDir() function
Merge pull request #118 from DavidRagazzi/fix-region-impl-factory

Optimize getPackageDir() function