Solve relative path for template file