Use S_ISDIR instead of guessed MIME to find Dirs