onFeature/tmpdir

Have a single function to get the temporary directory.