Converted from rbenv to luaenv