Fix installing ruby with environment