Clean and update build output more intelligently

Fixes #183.
Good point, it should include the exported folders from *referenced* projects, not this one.

I'll add a `Folders.REFERENCED` option which gives you all files from referenced projects' export folders and union that with `Folders.SOURCE` here.