updated logic for /scripts/vendor