Fix destruction of page names that end in 'index.html' e.g. 'pageindex.html'
Merge pull request #170 from TheJare/fixindex

Fix destruction of page names that end in 'index.html'