Remove the dependency for tk while using console mode