fix for directory comparison (from sun!gorodish!guy)