Fix not detecting script version