How to compare Path objects.