Fix the problem of some directory entries going missing when read by the linux version of 'ls'.
Fix the problem of some directory entries going missing when
read by the linux version of 'ls'.

Spotted by: rwatson

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase