[tor-commits] [stem/master] Revise _get_commands() helper