scide: when saving document, automatically append ".scd" extension

[fixes #838]

Since this bypasses the native file selection dialog's check for
file existence, we implement our own check whether the file with
the added extension exists, and warn the user in that case.