rpm: fix path to the file/libmagic magic file

Closes #22930.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>