Fixed error in script merging command line script