Assert on edit remote file.

Update logic so the file is always written if the --output option is
specified.
0.1.15