Refactor: tools: Some best practices in cli_cleanup_all()
Reduce duplication, use const, and compare against NULL explicitly.
Rename display_name to log_node_name to emphasize that it is indeed a
node name.
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>