diff --git a/src/xpdev/GNUmakefile b/src/xpdev/GNUmakefile
index d8f29433174b0743ffb9c4bf818c51a95c7ff327..99e11641346a5267326b80ce750507bfc8f8772c 100644
--- a/src/xpdev/GNUmakefile
+++ b/src/xpdev/GNUmakefile
@@ -36,7 +36,8 @@ ifndef os
  os		=	$(shell uname)
  $(warning OS not specified on command line, setting to '$(os)'.)
 endif
-os      :=	$(shell echo $(os) | awk '/.*/ { print tolower($$1)}')
+os      :=	$(shell echo $(os) | tr "[A-Z]" "[a-z]")
+#os      :=	$(shell echo $(os) | awk '/.*/ { print tolower($$1)}')
 
 ifdef bcc
  ODIR	:=	bcc.$(os)