avoid changing target files that might not exist in templates

* * *

This commit was sponsored by Decentralize Camp.
They are looking for more attendees that care about
the open web and for sponsors who want to help make it happen:

http://go.hood.ie/decentcamp
Merge pull request #112 from hoodiehq/optional-index-mangling

avoid changing target files that might not exist in templates