Fix broken linux directory listing (Fixes #33, Fixes #32)