Prefer Dir.mktmpdir over manual tmp dir in tests