Modified pre_build so it cleans up after itself.