check that the plugin directory exists. fixes #281