   [_ lein-project build-target template-dir]
   (cp-template-files template-dir)
   (cp-template-files (get-template-file "global"))
-  (let [project "./"
-        dependencies (deputils/get-dependencies-with-jars lein-project)
+  (let [dependencies (deputils/get-dependencies-with-jars lein-project)
         config-files (cp-shared-config-files dependencies)
-        config-files (cp-project-config-files project config-files)
+        config-files (cp-project-config-files config-files)
         cli-app-files (cp-shared-cli-app-files dependencies)
         bin-files (cp-shared-bin-files dependencies)
         terminus-files (cp-terminus-files dependencies build-target)]
     (if cli-app-files
-      (cp-cli-wrapper-scripts project))
+      (cp-cli-wrapper-scripts (:name lein-project)))
     (cp-doc-files lein-project)
     (generate-ezbake-config-file lein-project build-target config-files cli-app-files bin-files terminus-files)
     (generate-project-data-yaml lein-project build-target)

  (str/replace-first project-name #"^pe-" ""))

(defn cp-cli-wrapper-scripts
  [project]
  (fs/copy+ (get-staging-template-file "cli-app.erb")
            (fs/file staging-dir "ext" "bin" (str (get-real-name project) ".erb"))))

(defn get-out-dir-for-doc-file
  [dep jar-entry]

    (relativize staging-dir out-file)))

(defn cp-project-config-files
  [config-files]
  (let [project-config-dir    (get-project-config-dir)
        project-config-files  (if (fs/directory? project-config-dir)
                                (find-files-recursively project-config-dir))
