diff --git a/Makefile b/Makefile
index 28a8f3496dde4c399d6e19ae54fd44697c90482d..852c94cb980a7da43c28a2e1e41ba05fa06bd041 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ COMMIT := $(shell git rev-parse --short HEAD)
 uname := $(shell uname -s)
 arch := $(shell uname -m)
 arch := $(shell if test $(arch) = x86_64 -o $(arch) = amd64; then echo 64; else echo 32; fi)
-TWEEGO := $(shell command -v tweego || echo "$$?")
+TWEEGO := $(shell if type tweego; then echo tweego; else echo 1; fi)
 ifeq ($(TWEEGO),1)
 	ifeq ($(uname),Linux)
 		ifeq ($(arch),64)