fix(crashdumps): pointer cast is incorrect

1. Lua traces were not in the crash dumps
2. Create a module so we can configure the location for crash dumps dynamically for tests