TempDir.then

Closes #4
GitDir: DRY'd up some logic