little more robust fetching of state file to find the diff's timestamp