diff --git a/build.sh b/build.sh
index d7b95e8987e80d30a99bd461f8921a6ecddef7f4..9b0b8399a323285198750b9b51d617fa1b98ac1c 100755
--- a/build.sh
+++ b/build.sh
@@ -342,7 +342,7 @@ then
       done
 
       if [ $have_private_repo = true ]; then
-        $python_command  $(native_path "$helper/hg/bin/redirect.py") "${private_S3PROXY_URL}${S3PREFIX}repo/$repo/rev/$revision/index.html"\
+        python_cmd "$helpers/redirect.py" "${private_S3PROXY_URL}${S3PREFIX}repo/$repo/rev/$revision/index.html"\
             >"$build_log_dir/private.html" || fatal "generating global redirect"
         upload_output global_redirect "$build_log_dir/private.html" text/html private
       fi