use `go env` to determine goroot and gopath, support multiple gopath entries and skip over ones with no pkg dir