Fixed PluginManagerTests

It caused the deletion of the existing bin/plugin script when run from the IDE