Why are we adding a final trailing slash ?
Without it, this could just be `strlcpy(dirname, GetStateDir(), max_size)`