make build-go.pl more robust