Update ruby version in rvmrc.
Fix some issues with generated files.