fixed script version parsing