Allow relocating yang tool location

Change-Id: Ic8a166aa1161f57f94c11d824f22bfc7154bcb77
diff --git a/tools/dev/bin/patch-yang-libs b/tools/dev/bin/patch-yang-libs
index 01f3935..7e11968 100755
--- a/tools/dev/bin/patch-yang-libs
+++ b/tools/dev/bin/patch-yang-libs
@@ -6,7 +6,7 @@
 BVER=2.2.0-b3
 SVER=2.2-SNAPSHOT
 
-YANG_TOOLS_ROOT=~/onos-yang-tools
+YANG_TOOLS_ROOT=${YANG_TOOLS_ROOT:-~/onos-yang-tools}
 
 rm -f $ONOS_ROOT/lib/yang/* 2>/dev/null
 mkdir -p $ONOS_ROOT/lib/yang