Fixed bug when no files found but a dir is