Fix #1749 - do not fail to build if not a git repo
Created by: davemevans
Build was failing if code was grabbed as archive rather than cloned from git repo.
Created by: davemevans
Build was failing if code was grabbed as archive rather than cloned from git repo.