Use Dir.mktmpdir for tests more