[fix] stack could mistakenly be seen as a FileDirectory if the contained extension was ISO
Merge pull request #2803 from Voyager1/fix-stack-directory

[fix] stack could mistakenly be seen as a FileDirectory if contained iso files