[#53260919] Detect and pass RUBY_LIBRARY to sub projects