The problem that it is temp dir already :) And I need to clean it.
Now I thinking about something 
```
bs, _ := ioutil.ReadAll(ctx)
ctx = bytes.NewReader(bs)
```
It has memory overhead, but it is much simplier to move in separate function. And then I can use this generic function in CmdBuild also.