anchor.diff:  open System.IO
   open System
   
  +let exeLocation = System.Reflection.Assembly.GetEntryAssembly().Location |> Path.GetDirectoryName
   let directory = System.Environment.CurrentDirectory
   
   let RefreshTemplates () =
       printfn "Getting templates..."
  -    Repository.cloneSingleBranch "." "https://github.com/fsprojects/generator-fsharp.git" "templates" "templates"
  +    Path.Combine(exeLocation, "templates") |> Fake.FileHelper.CleanDir 
  +    Repository.cloneSingleBranch exeLocation "https://github.com/fsprojects/generator-fsharp.git" "templates" "templates"
   
   let applicationNameToProjectName folder projectName =
       let applicationName = "ApplicationName"
  
positive.code:     printfn "Changing guid to %s" guid
      sed "<%= guid %>" guid projectFolder 
      printfn "Done!"
      ()
  
  let Help () = 
      printfn "Fix (Mix for F#)"
      printfn "Available Commands:"
      printfn " new [projectName] - creates a new project with the given name"
      printfn " help - displays this help"
      printfn ""
  
  
  
  let rec consoleLoop f =
      Console.Write("> ")
      let input = Console.ReadLine()
      input.Split(' ') |> f
      consoleLoop f
  
  let handleInput = function
      | [| "new"; projectName |] -> New projectName
      | _ -> Help()
  
  
  [<EntryPoint>]
  let main argv = 
      if argv |> Array.isEmpty
      then consoleLoop handleInput
      else handleInput argv
      0
negative.code:                     File.WriteAllText(x, contents))
  
  let New projectName =
      let templatePath = Path.Combine(exeLocation, "templates")
      let projectFolder = Path.Combine(directory, projectName)
  
      if not <| Directory.Exists templatePath
  