FIX: Template manifest flushing

Fixes #3093 - template manifest not being regenerated on /dev/build/?flush=1