eliminate empty orphaned Tk window

Moved loadTk call inside the auto run check.