Rearrange the order of the patterns to match <% last

Since its least specific, the <% need to be matched last or else it blows up things like <%def, etc.

This should be better than the last commit.