try to make sourcing the merge script safe