r8753: fixed directory handling on systems that do not return . and .. as the