Made the RHEL build script work as the one for DEBs.