Add cmake constant for PluginDir

fixes #6548