Fix diff_changes_paths, so that unstaged changes work properly.