[mort] Fix table detection logic

mort really needs some initial tests at least.
1 file changed