New template precompiling script
Fix hcomp script