In this specific case, the switch_if() is in #kobopath, which is called by the save template (
{#kobopath:re(_,/)}/{author_sort:sublist(0,1,&)}/{title} - {authors}).
Just to be safe, I set up this template rule, so I tend to know right away that I loaded up the wrong version.