Remove trailling slash in diff.