More bugfixes for Directories and Debugging

Forgot to put directory code in some places.
Moved the LuaJIT workaround variable saving code to every hook call.
This was causing breakpoints to never get hit.
Changed a gettable call to a rawget call to prevent weird stack issues
in CallMetaMethod.