prepare build in clean checkout dir