(edit_set_filename): expand tilde while setting file name.