Fixed deployment script version autodiscover