Fix relative path trimming
Fix directory listing