Normalize template paths