detect ruby in configure script