Don't forget the fact that dictators in the middle east have tended more toward secularization (it's easier to secure power when you squash religious squabbles and don't have to contend with religious laws that might conflict with your decisions) and "westernization" insofar as it relates to building a military. Leading to a backlash against both among many in the general population once the dictatorships eventually crumble.
Have no doubt that the spirit of secularization in mideastern states that have undergone military revolutions after the fall of the Ottoman empire and the end of the mandates, such as Egypt, Syria, and Turkey, was an ideological no less than political decision. It has to do with the spirit of French and British republicanism.
Ataturk is the best example: he believed that the only way to modernize Turkey and make it count is to make it more like a secular European republic. So he disposed of any remains of sultanic traditions, separated between church and state, and switched the Turkish alphabet from an Arabic to a Latin one.
So you can understand the rise in Muslim fundamentalism in those states today - the reason is that the secular state failed to "deliver the goods", i.e. improve the economy and solve the problems of inequality and corruption. So movements like the Muslim Brotherhood claim they have the answer - Islam is the answer.