     }
 
     private func _restoreState(_ object: SimplePersistanceProtocol) throws -> Bool {
-        // If the state doesn't exist, don't try to load and fail.
-        if !fileSystem.exists(statePath) {
+        guard let path = findStatePath() else {
             return false
         }
         // Load the state.
-        let json = try JSON(bytes: try fileSystem.readFileContents(statePath))
+        let json = try JSON(bytes: try fileSystem.readFileContents(path))
         // Get the schema version.
         let version: Int = try json.get("version")
 

    /// The path at which we persist the state.
    private let statePath: AbsolutePath

    /// Writes the state files with pretty print JSON.
    private let prettyPrint: Bool



        default:
            throw Error.invalidSchemaVersion(version)
        }

        // If we loaded an old file path, migrate to the new one.
        if path != statePath {
            try fileSystem.move(from: path, to: statePath)
        }

        return true
