Modified updatedefault.sh to use git commands to create patch file