Re-factor vendorsetup.sh