Clean public directory during build

This is the upshot of the PR. When building we first delete the public directory to ensure that it does not have any files layout around from a different build.