I managed to solve this. Turns out that one of my paths was missing a space, and that was the one that I was hod coding for testing. I got this working. Now I need to use this same logic to modify the menus for the different versions (or perhaps grey out some choices?)
proof that an old dog can learn new tricks