Additional clid str changes:

1. Need to skip bad entry in v4recov/v4old to avoid infinite loop.
2. Need to closedir after processing the subdir.

Signed-off-by: Rong Zeng <rongzeng@us.ibm.com>