Build: removed flatten: true when building demos

Plugins now exist in their own folders in the `/dist/demo`.  Fixes #2997

This PR doesn't include the changes talked about in #2998.