Fix update-all command by using for instead of while loop. Fixes regression from #13.