I think we maybe want to use os.TempDir() instead of hard-coding '/tmp' here.