Fixes #806 Build fails if GOPATH has multiple paths

Fixes #806 Build fails if GOPATH has multiple paths with a small fix of the build scripts.