header.inc: Fix overwriting template path unconditional

Authored by habacker on May 7 2020, 7:48 AM.