Make template path portable