Write coverage data to a build directory, add a clean task