Remove plugins before copying them again.

This way plugins can rename/delete files w/o having old files lying around.
Only delete core plugins.
Merge pull request #359 from plietar/rm-plugins

Remove plugins before copying them again.