Update createpatch script