Add fs.with_tempdir and fs.writefile