packages: added getPackageDir() method