ruby: create lib paths in post-install

Closes #28343.
Closes #28466.
Closes #28467.