flushing build directory