We're scoping the deploy directory by the subpaths these days, so we need to take that into account when finding the metadata file. Fixes https://github.com/flatpak/flatpak/issues/1014