Clean up minor aspects of the plugin build process

Avoid manual edits of module/targets.mk, let it be fully autogenerated just as all the other targets.mk files. Remove the built plugin on "make clean".