try exporting PACKAGE_DIRS env var