MDL-66384 core: Limit explode to allow subdirs in template names