Case insensitivity

Fix handling of case insensitive file systems for computing diffs.