Fix update checking

Ton of shit. Didn't expect I'd have to do all this.