Address BLAST usage errors as of BLAST+ 2.10. Supply the legacy blastall command's -Q and -D flags only in BLAST variants that involve translating queries and subjects respectively. (tblastx notably translates both.)
supplied $format_type value (7 or 9) results in the warning
Warning: [tblastn] The parameter -num_descriptions is ignored for output formats > 4 . Use -max_target_seqs to control output
Actually substituting -max_target_seqs would require bypassing the legacy blastall wrapper, which isn't entirely straightforward in this instance due to the need to convert a variable format string to modern options. (Also, this script technically only knows the path to blastall, though that shouldn't be a concern in practice on Debian.)