Add support for directory listing under OSX