change script to work also plugins outside expansion subfolder