Add windows support for directory listing