Fixed autoupdate not working correctly because of a variable containing the version at the end of the script