allow different ruby versions and fix tests

for https://github.com/FinalCAD/finalcloud/issues/3146
@s12chung i really prefer Pathname, but anyway...