Failed to closedir() in dirobjectcount(). Caused 'too many open files'
error on large directory trees. Now fixed.