     let preferenceKey = "PreferenceSpecifiers"
     settingsPath = (settingsPath as NSString).stringByAppendingPathComponent("Root.plist") as String
     
-    if var settings = NSMutableDictionary(contentsOfFile: settingsPath) {
+    if let settings = NSMutableDictionary(contentsOfFile: settingsPath) {
         if var existing = settings[preferenceKey] as? [AnyObject] {
             existing = existing.filter {
                 if let dictionary = $0 as? [String:AnyObject] {


let count = Process.arguments.count
if count == 1 || count > 5 {
    println("\(__FILE__):\(__LINE__): Received \(count) arguments, Proper usage: processEnvironments.swift -- [bundledPath] [srcPath] [settingsPath] [allowedEnv]")
    exit(1)
}


                settings[variable] = [env: allowedValue]
            } else {
                if let prepend = prependMessage {
                    print("\(prepend) missing value of variable \(name) for env \(env) available values \(values)")
                } else {
                    print("missing value of variable \(name) for env \(env) available values \(values)")
                }
            }
        }
