Fix Ruby scripts and update to 6.2.1