scide: ensure last active window activated after open/save file dialog

Fixes #678.