Some modification on script to make the patch