Upgrade vendored version of thor