Index: trunk/Makefile
===================================================================
--- trunk/Makefile	(revision 1339)
+++ trunk/Makefile	(working copy)
@@ -171,10 +171,10 @@
 # extract version info
 
 ifeq ($(BUILD_STANDALONE),1)
-  VERSION=$(shell grep "\#define *PRODUCT_VERSION" $(CMDIR)/q_shared.h | head -n 1 | \
+  VERSION=$(shell grep "\#define *PRODUCT_VERSION" $(CMDIR)/q_shared.h | head -1 | \
     sed -e 's/[^"]*"\(.*\)"/\1/')
 else
-  VERSION=$(shell grep "\#define *PRODUCT_VERSION" $(CMDIR)/q_shared.h | tail -n 1 | \
+  VERSION=$(shell grep "\#define *PRODUCT_VERSION" $(CMDIR)/q_shared.h | tail -1 | \
     sed -e 's/[^"]*"\(.*\)"/\1/')
 endif