refs #2726: Change the name of the exported file

and activate REPLACE behaviour if another file with the same name exists