Added backup function

For whenever the specified output file already exists