Detect which ruby dir to use