Fix git version check in update.sh

Before, it only checked the first three version components, making it
thing 1.8.4 is equal to 1.8.4.3. By checking one extra component, things
now work as expected.

This extends the fix for #3.