Fix the update checker

Now it's able to parse x.x.x-type-bxxx and x.x.x-bxxx