[ros-diffs] 02/05: [CMD] Create a DirNodeCleanup() helper for cleanup and simplify code (adapted from PR #592).