Issue #1: Adding a case when a table name is actually a filename, so it
contains a dot and an extensions.