Clean at the very beginning of build()

As suggested by @ianstormtaylor