Fixed wrong update checking

I replaced the update check with another method because the
old one did not work.