make the file merger more general and runnable from command prompt