diff --git a/upstream/build_tor_macos.py b/upstream/build_tor_macos.py
index f884a77d36f06b44dff25408001610ec7bf16e9a..ac3ee7d43be5dd16c8ae83daf1719f4be40a9611 100755
--- a/upstream/build_tor_macos.py
+++ b/upstream/build_tor_macos.py
@@ -77,7 +77,7 @@ def build_arch(versions, arch):
     rmtree(arch_dir / 'data')
     # print hashsums
     tor_file = arch_dir / 'tor'
-    libevent_file = arch_dir / 'libevent-' + libevent_version + '.dylib'
+    libevent_file = arch_dir / ('libevent-' + libevent_version + '.dylib')
     for file in [tor_file, libevent_file]:
         sha256hash = get_sha256(file)
         print("%s: %s" % (file, sha256hash))