lang/ruby3{1,2,3}: Fix build with POSIX-compliant sh -c
This chanes nothing in the built package, so bumping PORTREVISION is not
required.
PR: 222872
Reported by: jilles
Tested by: John Hein
Approved by: meta (myself, with ruby hat)
Sponsored by: Cybertrust Japan