fix inconsistency between go tool and go/build stdlib package