set pluginsDir in packages #1051

fixes #1051