Made the update check more reliable