diff --git a/helpers/make-firefox b/helpers/make-firefox
index a7145bd87766f97d9db6230f53f091ea786e97a5..d2d3ef92ccd6b3ca8f9fdc470e0fa1c9adb176c9 100644
--- a/helpers/make-firefox
+++ b/helpers/make-firefox
@@ -30,7 +30,7 @@ cp ./browser/components/preferences/advanced-scripts.xul ./browser/components/pr
 
 # KDE integration patches from https://www.rosenauer.org/hg/mozilla
 # Use firefox$MAJORVERSION branch if available, otherwise use default
-MAJORVERSION=$(echo `pkgversion` | sed 's/\([0-9]\+\).*/\1/')
+MAJORVERSION=$(echo `pkgversion` | /bin/sed 's/\([0-9]\+\).*/\1/')
 BRANCH=firefox$MAJORVERSION
 if ! wget --spider https://rosenauer.org/hg/mozilla/log/$BRANCH; then
 	BRANCH=default