Rewrote and corrected download logic for updater.sh