Change how PLUGIN_DIRECTORY is generated