Cleanup working copy before build.