Fix timeout handling: do not unfreeze twice
Fix directory listing: filter repeated entries