improved detection of different ruby implementations in mount