added a check for the presence of GOPATH