diff-cache: handle modified new files correctly