fix hardcoding of plugin directory