Use $GOPATH to identify Go workspace if present, otherwise use working directory.