Avoid hardcoding default template and instead use first autodetected.