Made the copy of RPM related files conditional.