The AppFolder expression returns the folder of the main executable file that started the app. On mac this happens to be in a subfolder. So it's working as expected, it's just the folder structure of an app is different on mac. (I can see the naming might be misleading, but this is how it's implemented right now.)
What are you trying to do with the AppFolder expression that needs it to point to the folder containing the .app subfolder instead?