Set LUA_PATH and LUA_CPATH on startup

This patch checks to see if luarocks is installed. If it is installed it
will use luarocks's path operator to write the LUA_PATH and LUA_CPATH
environment variables.