Fix bug in RPM creation