extlinux: Correct the directory block end condition