fix handling of global vendor scripts