fixes #65: merging.py now handles output files in current dir