diff --git a/devel/upload.in b/devel/upload.in
index 0ba650b8dd5a20af97976b5327d2222386dbe8af..7dcd6febac443be1537b92a5af1d5834175ff745 100644
--- a/devel/upload.in
+++ b/devel/upload.in
@@ -64,7 +64,7 @@ TXD=`mktemp -d`
 trap 'rm -rf $TXD' EXIT
 
 if [[ -f /proc/cpuinfo ]]; then
-  cpu_count=$(grep -E -c '^processor\s*:' /proc/cpuinfo)
+  cpu_count=$(grep -E -c '^processor[[:space:]]*:' /proc/cpuinfo)
   make_args=-j$(( cpu_count + 1 ))
 else
   make_args=