We should probably use `NSTemporaryDirectory` instead of hardcoding it to `/tmp`.