Changed generate.sh to rbenv environment