conditional ruby env tweaks