respect directory selection in treetutor

the patch to the test did not address how it is used in production.