fix issues when rpm -e is called to remove older RPMs