change current table check in export
change current table check in export

It was based on the path, but path might have joins in it. Now it's
based on the actual table.

informatics-isi-edu/ermrestjs,informatics-isi-edu/ermrestjs,informatics-isi-edu/ermrestjs