conditionally install ruby