Parse PACKAGE_DIRS before use