Use a more expressive API for getting the dir a path is in
diff --git a/certifi/core.py b/certifi/core.py
index e7ae2ee..f41d3fd 100644
--- a/certifi/core.py
+++ b/certifi/core.py
@@ -19,7 +19,7 @@
 
 
 def where():
-    f = os.path.split(__file__)[0]
+    f = os.path.dirname(__file__)
 
     return os.path.join(f, 'cacert.pem')
 
@@ -29,7 +29,7 @@
         "The weak security bundle is being deprecated.",
         DeprecatedBundleWarning
     )
-    f = os.path.split(__file__)[0]
+    f = os.path.dirname(__file__)
     return os.path.join(f, 'weak.pem')
 
 if __name__ == '__main__':