main/devicepkg-dev: Fix deviceinfo variables for kernels with "-" in name
Kernel subpackages may contain a "-" (e.g. -kernel-mainline-modem); replace it with an underscore to make sure that we find the kernel-specific variables in deviceinfo.
Related: https://gitlab.com/postmarketOS/pmbootstrap/merge_requests/1857