environment ruby detection