Fixed some Ruby scripts