fix multi level directory spec case