version script will now set the version if  is not null