             File.mkdir_p!(Path.dirname(filename))
             File.write!(filename, script)
             set_perms(filename)
+
           {:error, error} ->
-            Mix.raise "Error creating escript: #{error}"
-        end
-
-        Mix.shell.info "Generated escript #{filename} with MIX_ENV=#{Mix.env}"
+            Mix.raise("Error creating escript: #{error}")
+        end
+
+        Mix.shell().info("Generated escript #{filename} with MIX_ENV=#{Mix.env()}")
         :ok
+
       true ->
         :noop
     end
   end
 
   defp project_files() do
-    get_files(Mix.Project.app_path)
+    get_files(Mix.Project.app_path())
   end
 
   defp get_files(app) do

    escript_opts = project[:escript] || []

    if Mix.Project.umbrella?() do
      Mix.raise "Building escripts for umbrella projects is unsupported"
    end

    script_name = Mix.Local.name_for(:escript, project)

      end

  """
  @switches [
    force: :boolean,
    compile: :boolean,
    deps_check: :boolean,
    archives_check: :boolean,
    elixir_version_check: :boolean
  ]

  def run(args) do
    Mix.Project.get!()
    {opts, _} = OptionParser.parse!(args, strict: @switches)

    if Keyword.get(opts, :compile, true) do
      Mix.Task.run(:compile, args)
    end

    project = Mix.Project.config()
    language = Keyword.get(project, :language, :elixir)

    escriptize(project, language, Keyword.get(opts, :force, false))
