Replace call to tc_filename() with $this->get_filename()

`tc_filename` is not defined anywhere and causes a fatal error