flatpak: simplify internal identification of resources into a hash
Instead of building artificial strings.