fixed path detection using PackageLocator::getPackagePath