Place sub-merging temporary files inside of original database directory instead of current working directory