fix detection of current ruby