diff --git a/setupDevRepos.py b/setupDevRepos.py
index 74c20af705e00d5929de4538976aad9903c6940c..649407074f8f5ce676bc429ac096a5761b12ecba 100644
--- a/setupDevRepos.py
+++ b/setupDevRepos.py
@@ -8,6 +8,7 @@
 
 import os
 import subprocess
+import ntpath
 import sys
 
 
@@ -38,18 +39,18 @@ def main():
     libvmdk_home = os.getenv("LIBVMDK_HOME")
     base_Library_path = {}
     if(libewf_home != None):
-        base_Library_path["libewf_64bit"] = os.path.dirname(libewf_home)
+        base_Library_path["libewf_64bit"] = ntpath.dirname(libewf_home)
     else:
         print('Please set the env variable LIBEWF_HOME')
         sys.exit(1)
 
     if(libvhdi_home != None):
-        base_Library_path["libvhdi_64bit"] = os.path.dirname(libvhdi_home)
+        base_Library_path["libvhdi_64bit"] = ntpath.dirname(libvhdi_home)
     else:
         print('Please set the env variable LIBVHDI_HOME')
         sys.exit(1)
     if(libvmdk_home != None):
-        base_Library_path["libvmdk_64bit"] = os.path.dirname(os.path.dirname(libvmdk_home))
+        base_Library_path["libvmdk_64bit"] = ntpath.dirname(ntpath.dirname(libvmdk_home))
     else:
         print('Please set the env variable LIBVMDK_HOME')
         sys.exit(1)