Fix template recompilation (templates were `require`d before being re-written)