Merge script template into script (close gh-2).