Make directory listing work on non-chrome browsers