Add option for specifying the final location of the merged file

Also if creating a new file, produce it in its final location instead of merging and then copying.

This is most useful if you want the result to be stored on a separate device from the original - 2 copies are avoided in this case.