[PATCH 6.15 302/480] tools subcmd: Tighten the filename size in check_if_command_finished