[dumper] remove unnecessary directory checks