Add support for dynamically defined packagesdir from the treeinfo file