Get rid of hardcoded url for downloading the latest version, and use the url stored in the stat server instead