Makes tempfile and tempdir accept Path as dir