Handle multiple ruby versions correctly.