Fix variable name copy/paste error in build-installer.py (GH-13038)

diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py
index fb43da5..60e28fe 100755
--- a/Mac/BuildScript/build-installer.py
+++ b/Mac/BuildScript/build-installer.py
@@ -1540,7 +1540,7 @@
         print(" -- retrying hdiutil create")
         time.sleep(5)
     else:
-        raise RuntimeError("command failed: %s"%(commandline,))
+        raise RuntimeError("command failed: %s"%(cmd,))
 
     if not os.path.exists(os.path.join(WORKDIR, "mnt")):
         os.mkdir(os.path.join(WORKDIR, "mnt"))