Fixed rpm uninstall logic