added librpm checks for RPM builds