Looking at the code, the situation you’re in should not occur under normal circumstances. One theory I have is that you have some unexpected folders within your apps/
directory (located in the directory Nextcloud is installed in on your server).
So I suggest browsing your Nextcloud installation directory and locating the apps/
directory (and possibly some others, but I can’t say since you seem to have overlooked the support template so there’s really not much else I can propose).