Clean and simplify vendor.sh while making it easier to maintain as well Upstream-commit: 93ce4d2c0b2dcebd9e763efd0432f45811a3d8d2 Component: engine