Clean and simplify vendor.sh while making it easier to maintain as well