Update plugin.php

Fixed bug in buildFamily where every file in a subdirectory was being added a sibling - not just the index file.