fix detecting installed rubies, fix #a82073e13555cb909720ec595afa2cab598d166f