Fix default filename/directory when saving a file under a different name