Fix order of update command during build