[local] fix modified files not being updated

Bad refactoring from 78f727b9bef93b3 I think.