Use Go tool for obtaining GOPATH
Since Go 1.8 $GOPATH may be not set because it defaults to $HOME/go.