change template file path from relative to absolute