fix an apparent oversight that prevented custom ddocs from reindexing

previously this was triggering _design/myapp rebuild instead of _design/myapp-tmp rebuild
Merge pull request #190 from dimagi/rebuild-tmp-index

fix an apparent oversight that prevented custom ddocs from reindexing