ruby: Add workarounds to use in-tree build not the installed one