updated logic for folder creation
diff --git a/tasks/main.yml b/tasks/main.yml
index a64861f..e4504ec 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -15,7 +15,7 @@
 
 - name: Ensure that a folder exists for the file to be generated
   file:
-    path: "{{ opdk_installation_config_file | dir }}"
+    path: "{{ opdk_installation_config_file | dirname }}"
     state: directory
 
 - name: Construct the silent-install file