Fixed the directory ignored problem with wildmenu