CPackRPM: avoid a spurious `;` in the `%pre` and other sections with scripts

This was accidentally added by commit 34c8a230 (CPackRPM: add
scriplets tags only if scripts exist, 2021-04-01, v3.21.0-rc1~387^2).

Fixes: #22501
39 jobs for !6415 with fix-issue-22501 in 13 minutes and 39 seconds (queued for 2 seconds)
latest merge request