Merge "Use unified function to check for TF backend" into mcp/caracal