Implement merge-files only using @bukzor's method.