Make it possbible to use the pallet's path name, with `-` separator or crate name with `_` separator. fixes #8226