fix(gatsby-recipes): Only remove the ".mdx" ending if running local recipe (#27718)
fix(gatsby-recipes): Only remove the ".mdx" ending if running local recipe (#27718)

This fixes showing the correct install command when running recipes from the recipes list shown when running `gatsby recipes`
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby