Fix #2663 - refactor to use shell_out in rpm provider

Fixes #2663 by using shell_out instead of popen4
I did not run into issues. My ruby skills aren't the greatest and I assumed that the person who wrote the previous implementation had a reason. I will update it and test it out :)