Fixed a bug which showed directory icons for normal files and not for directories