                (util/is-relative? override))
           (let [override-file
                 (-> (io/file package-dir override)
-                    (.getCanonicalFile))]
+                    (absolute-file))]
 
             (when-not (.exists override-file)
               (throw (ex-info "override to file that doesn't exist"

        (-> (if (and (= :release mode) (seq file-min))
              (io/file file-min)
              (io/file file))
            (.getCanonicalFile))]
    (when-not (.exists file)
      (throw (ex-info "file override for require doesn't exist" {:file file :require require :config cfg})))


  (when name
    (let [file
          (-> (io/file dir name)
              (absolute-file))]
      (when (.exists file)
        file))))

