script : add branch delete feature in apply_patch for incremental build