Check for yarssr state dir before searching in it