Proper ruby builds

Some fixes so that build rubies can be properly generated.