scripts: ensure intended path for edtlib imports

When updating `sys.path` to allow importing the pickled edtlib instance,
add the path to the front of `sys.path`, not the end. This ensures that
the `devicetree.edtlib` module that is imported is the one relative
to the files being run, not some other version which may exist on the
path.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
diff --git a/scripts/gen_handles.py b/scripts/gen_handles.py
index 9460525..fefb049 100755
--- a/scripts/gen_handles.py
+++ b/scripts/gen_handles.py
@@ -39,8 +39,8 @@
 import elftools.elf.enums
 
 # This is needed to load edt.pickle files.
-sys.path.append(os.path.join(os.path.dirname(__file__),
-                             'dts', 'python-devicetree', 'src'))
+sys.path.insert(0, os.path.join(os.path.dirname(__file__),
+                                'dts', 'python-devicetree', 'src'))
 from devicetree import edtlib  # pylint: disable=unused-import
 
 if version.parse(elftools.__version__) < version.parse('0.24'):