fixed unremoved luarocks install directory
Added options parser allowing selection of Lua and LuaRocks version, as well as installation directories.

Improved error handling and error messages.