Add an extra check before doing the lfc_readdir call which sometimes blocks
Reword some of the debug messages