Trim goversion if it contains spaces

Change-Id: I3deb7c5ae8980d5c6300628d21a5cfef144f9cb0
diff --git a/Makefile b/Makefile
index f7727b7..83103e1 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@
 endif
 
 VERSION     ?= $(shell cat $(GOPATH)/src/github.com/opencord/cordctl/VERSION)
-GOVERSION    = $(shell go version 2>&1 | sed -E  's/.*(go[0-9]+\.[0-9]+\.[0-9]+).*/\1/g')
+GOVERSION    = $(shell go version 2>&1 | awk '{print $$3;}' )
 
 GITCOMMIT   ?= $(shell git log --pretty=format:"%h" -n 1)
 ifeq ($(shell git ls-files --others --modified --exclude-standard 2>/dev/null | wc -l | sed -e 's/ //g'),0)