Fixed empty directory checking