Fix bug in the self-update command