Fix bug in update (return to previous dir).