 }
 
 func cacheContents() -> String? {
-    guard let swiftVersion = swiftVersion() else {
+    guard let version = swiftVersion() else {
         return nil
     }
 
-    guard let contentsOfCartfileResolved = contentsOfCartfileResolved() else {
+    guard let resolved = contentsOfCartfileResolved() else {
         return nil
     }
 
-    return "--Swift version: \(swiftVersion) --Swift version \n --Cartfile.resolved: \(contentsOfCartfileResolved) --Cartfile.resolved"
+    return "--Swift version: \(version) --Swift version \n --\(resolvedFileName): \(resolved) --\(resolvedFileName)"
 }
 
 func cacheAvailable() -> Bool {

        return false
    }

    guard let newCacheContents: String = cacheContents() else {
        return false
    }
    

// create cache
if bootstrapCommand {
    let cacheFilePath = "\(workingDir)/\(carthageDirName)/\(cacheFileName)"
    guard let contents = cacheContents() else {
        print("Failed to create cache content.")
        exit(0)
    }

    if NSFileManager.defaultManager().fileExistsAtPath("\(workingDir)/\(carthageDirName)") {
        do {
            try contents.writeToFile(cacheFilePath, atomically: false, encoding: NSUTF8StringEncoding)
        } catch _ {
            print("Failed to update CacheFile.")
            exit(0)
        }
    } else {
        // create Cachefile
        if NSFileManager.defaultManager().createFileAtPath(cacheFilePath, contents: contents.dataUsingEncoding(NSUTF8StringEncoding), attributes: nil) {
            print("Cachefile created successfully.")
        } else {
            print("Failed to create Cachefile.")
