Correctly set fileName member of Plugin struct.

Thanks to char101
Closes #1020