refactor: make createTempDir take an optional for temp dir root
I've started working on this issue. I've got a branch that I think has accomplished the goal, but I want to self-review before putting it up for peer review.