Yes the interface provided by the Mender variables typically only work if there is one file related to the bootloader. I think there is a task to improve this but never prioritized :).
What @dellgreen proposed is what I would recommend as well as a workaround or something like this which I did for another platform,