Clean-up after ourselves.
I overlooked how scandir worked...
The Linux plug-in implementation should be able to load plug-ins in a directory passed to it.