Fix update command

* Update was previously checking out the old version, then
* looking for the lastest commit, when it should checkout the specified
* branch and then look for the latest commit