Fix disappearing console when changing gamedir.