Call powerline.new_window early under certain conditions

Fixes #250 for the GUI.