Fixes Mercurial browsing under unix-like os and for directory depth > 2 and (patch #826 by Frederic Moulins, slightly edited to preserve win32 compatibility).
Authored by: jplang 2008-03-11
Parent: [r1227]
Child: [r1229]