Added a check if plugin came bundled with directory before deleting.