Add a dir() method to Lua, still need to figure out how to redirect stdout