Preheat the oven to 375°F and grease a 9×13-inch baking pan.
In a large bowl, whisk together the flour, 1 cup sugar, baking powder, salt, and cinnamon if using.
Cut in the cold butter with a fork or pastry cutter until the mixture resembles coarse crumbs, then stir in the egg. The dough will be crumbly.
Press a little more than half of the dough evenly into the bottom of the prepared pan.
In a separate bowl, stir together the 1/2 cup sugar, cornstarch, and lemon juice. Gently toss in the blueberries until evenly coated.
Spread the blueberry mixture evenly over the crust, scraping in any excess juices.
Crumble the remaining dough over the blueberry layer, leaving some berries peeking through.
Bake for about 45 minutes, until the top is slightly golden brown and the fruit is bubbling at the edges.
Cool completely in the pan before cutting into squares.