Fix #2663 - refactor to use shell_out in rpm provider

Fixes #2663 by using shell_out instead of popen4
Did you run into an issue here with @status? I don't see why a locally scoped variable wouldn't be fine.