Run the update command as early as possible.

Avoid, as much as we can, the possibility of other broken code
preventing the update function from working properly. Fixes #43.