         file = path.normalize(file)
         index = file
           .replace(path.normalize(dirname), "")
-          .replace("\\", "/")
+          .replace(/\\/g, "/")
           .replace(/\/(server|shared)\//, "")
 
         @metadata().templates[index] = content.toString()

    controllerPath: "app/controllers/server"
    modelPath: "app/models/server"
    configPath: "app/config/server/config"
    templatePath: "app/templates"
    publicPath: "public"
    port: 80
    env: "production"

    files = []
    @metadata().templates = {}

    dirname = [Salad.root, @options.templatePath].join(path.sep)

    unless fs.existsSync dirname
      throw new Error "Templates folder does not exist! #{dirname}"
