rpm: Improve devtoolset detection for cmake

This failed when SCLs were present, but no devtoolset-*
1 job for master in 18 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Lint
passed #8993
docker-build
shellcheck

00:00:18