Fix #2663 - refactor to use shell_out in rpm provider

Fixes #2663 by using shell_out instead of popen4
Thanks! I didn't know this was a thing :)