Also fix ruby setup code, some of its bits were actually Python and didn't quite work when pasted into irb...