Fix #2663 - refactor to use shell_out in rpm provider