fix workdir reuse