Use wfMkdirParents() and wfRecursiveRemoveDir() rather than DIY

Change-Id: I5dfa31a9aa071fdfe28d3a20a5f71adcf3ebcc7f