Update script to read version