Improve the error paths
JPX merge: read arguments also from file