Update hg.php

fixed bug with template directory