Clean up build environment before build phase