Fixed version update script bug