Add check for when GOPATH is null

As pointed out in #198, I've forgot to check for NULL from GOPATH. Sorry.