Small fixes to RPM module

Not needed for bundler_ext anymore, but still should be resolved. Handles a few edge cases with different versions of rpm on different platforms