diff --git a/Shorewall/install.sh b/Shorewall/install.sh
index b3da78b..7295d0c 100755
--- a/Shorewall/install.sh
+++ b/Shorewall/install.sh
@@ -302,8 +302,8 @@ if [ -n "$DESTDIR" ]; then
 
     install -d $OWNERSHIP -m 755 ${DESTDIR}/sbin
     install -d $OWNERSHIP -m 755 ${DESTDIR}${INITDIR}
-else
-    [ -x /usr/share/shorewall/compiler.pl ] || \
+elif [ $PRODUCT != shorewall ]; then
+    [ -x ${LIBEXEC}/shorewall/compiler.pl ] || \
 	{ echo "   ERROR: Shorewall >= 4.3.5 is not installed" >&2; exit 1; }
 fi
 
