[PATCH 6.16 415/627] tools subcmd: Tighten the filename size in check_if_command_finished